package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.DepartmentCommitteeGradeMapper;
import com.xpc.pojo.DepartmentCommitteeGrade;
import com.xpc.service.IDepartmentCommitteeGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 年委部门表(DepartmentCommitteeGrade)表服务实现类
 *
 * @author makejava
 * @since 2022-04-25 22:25:22
 */
@Service("departmentCommitteeGradeService")
public class DepartmentCommitteeGradeServiceImpl extends ServiceImpl<DepartmentCommitteeGradeMapper, DepartmentCommitteeGrade> implements IDepartmentCommitteeGradeService {
    @Autowired
    private DepartmentCommitteeGradeMapper departmentCommitteeGradeMapper;

    @Override
    public Page<DepartmentCommitteeGrade> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        departmentCommitteeGradeMapper.selectPage(page, null);
        return page;
    }
}

